//
//  ExpertStyleTwoTableViewCell.m
//  Toyohu
//
//  Created by Heige on 16/5/3.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "ExpertStyleTwoTableViewCell.h"
#import "ExpertSearchModel.h"
#import <UIImageView+WebCache.h>
@implementation ExpertStyleTwoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(ExpertSearchModel *)model
{
    _model = model;
    [_expertImg sd_setImageWithURL:[NSURL URLWithString:model.eHead]];
    _expertImg.layer.cornerRadius = _expertImg.layer.frame.size.height/2;
    _expertImg.clipsToBounds = YES;
    [_img sd_setImageWithURL:[NSURL URLWithString:model.aPictureUrl]];
    _like.text = [NSString stringWithFormat:@"%ld",model.aFavNum];
    _comment.text = [NSString stringWithFormat:@"%ld",model.aPraiseNum];
    _name.text = model.eName;
    _title.text = model.aTitle;
    _expertTag.text = model.eAppellation;
    _content.text = model.aAbstract;
}

@end
